<div class="well">
    <div class="btn-toolbar" id="report-buttons">
        <div class="btn-group">
            <a class="btn btn-info btn-sm" id="generate-report" href="<?= $this->_exportUrl ?>">
                <i class="glyphicon glyphicon-file"></i>&nbsp;&nbsp;<?= $this->exportButtonTitle ?>
            </a>
        </div>

        <div class="btn-group">
            <a class="btn btn-info btn-sm" id="reset-filters" href="">
                <i class="glyphicon glyphicon-refresh"></i>&nbsp;&nbsp;<?= $this->resetFiltersButtonTitle ?>
            </a>
        </div>

        <?php
            if (!is_null($this->pathToFiltersView)) {
                $this->render($this->pathToFiltersView);
            }
        ?>
    </div>
</div>
<?php
Yii::app()->clientScript->registerScript('initButtonsEvents', "initReportButtons('{$this->gridId}', "
    . "'{$this->_exportUrl}', " . CJSON::encode($this->filterSelectors) . ");", CClientScript::POS_END);
